Name

ibgetconf — Get names of boards and devices configured in gpib.conf

Synopsis

#include <gpib/ib.h>
int ibgetconf(dev_array[],  
 num_entries); 
struct dev_entry dev_array[];
int num_entries;
 

Description

The dev_array[] parameter is an array of num_entries struct dev_entry items. For each interface and device configured in the gpib.conf configuration file, the dev_array[].type field is set to 1 for an interface and to 0 for a device. The corresponding dev_array[].name pointer is set to point to the name of the interface or device. All the device entries following an interface entry belong the that interface, i.e. they refer to the minor of the immediately preceding interface entry. The interface entries in dev_array[] are set in increasing minor order.

num_entries need not be greater than 64

Return value

The number of names set in dev_array is returned. If a parsing error occurs -1 is returned and iberr and ibcnt are set accordingly.